package com.bdqn.text;

public class Customer {
    String id;//客户
    String name;//客户名称
    public String getId() {
        return id;
    }
    public String getName() {
        return name;
    }
    public Customer(String id, String name) {
        this.id = id;
        this.name = name;
    }
    public Customer() {
    }
    /*
    * 计算总租金方法
    * */
    public int calcTotalRent(MotoVehicle motos[],int days){
        int sum=0;
        for (int i=0;i<motos.length;i++)
            sum+=motos[i].calRent(days);
            return sum;
    }

}

